package com.gym.demo;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;

public class IOText {
	public static void main(String[] args) throws IOException {
		InputStreamReader inputStreamReader = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(inputStreamReader);
		String str=br.readLine();
		File file = new File(str);
		if(file.exists()){
			String[] sd = file.list();
			for(int i=0;i<sd.length;i++){
				System.err.println(sd[i]);
			}
		}else{
			System.err.println("路径不存在");
		}
		br.close();
		inputStreamReader.close();
	}
}
